﻿@using Z.Nlayer.Utility.ImageUpload
<!DOCTYPE html>
<html lang="ch">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>纯净版会员系统 - @ViewBag.Title</title>

    <meta name="description" content="overview &amp; stats" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <link rel="stylesheet" href="/Areas/Admin/assets/css/bootstrap.css" />
    <link rel="stylesheet" href="/Areas/Admin/assets/css/font-awesome.css" />
    <link rel="stylesheet" href="/Areas/Admin/assets/css/ace-fonts.css" />
    <link rel="stylesheet" href="/Areas/Admin/assets/css/ui.jqgrid.css" />
    <link rel="stylesheet" href="/Areas/Admin/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />
    <link rel="stylesheet" href="/Areas/Admin/assets/css/bootstrap-datepicker3.css" />
    <link rel="stylesheet" href="/Areas/Admin/assets/css/bootstrap-datetimepicker.css" />
    <link href="/Areas/Admin/assets/css/fileinput.min.css" rel="stylesheet" />
    <link href="/Areas/Admin/assets/css/charts.css" rel="stylesheet" />
    <link href="/Areas/Admin/assets/js/uploadify/uploadify.css" rel="stylesheet" />
    @RenderSection("Css", false)
    <style type="text/css">
        .datepicker {
            z-index: 1051 !important;
        }

        .ui-filter {
            padding: 0 3px;
        }

        .ui-btn-search {
            position: absolute !important;
            right: -90px;
            top: 0;
            padding: 8px 10px;
        }

        .search-group {
            margin: 5px 10px 5px 0;
            position: relative;
        }

            .search-group label {
                display: inline-block;
                line-height: 36px;
                font-size: 13px;
                text-align: right;
            }

            .search-group input, .search-group select {
                height: 38px;
            }

        .textdate {
            height: 28px;
            padding: 0px;
            margin: 0px;
        }

        .file {
            position: relative;
            display: inline-block;
            background: #D0EEFF;
            border: 1px solid #99D3F5;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: #1E88C7;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }

            .file input {
                position: absolute;
                font-size: 100px;
                right: 0;
                top: 0;
                opacity: 0;
            }

            .file:hover {
                background: #AADFFD;
                border-color: #78C3F3;
                color: #004974;
                text-decoration: none;
            }

        .modal {
            direction: ltr;
            overflow-y: auto;
        }

            .modal .modal-dialog {
                direction: ltr;
            }

        .modal-open {
            overflow: auto;
        }
    </style>
    <!-- basic scripts -->
    <!--[if !IE]> -->
    <script src="/Areas/Admin/assets/js/jquery.js"></script>
    <!-- <![endif]-->
    <!--[if IE]>
    <script src="/Areas/Admin/assets/js/jquery1x.js"></script>
    <![endif]-->
    <script type="text/javascript">
        if ('ontouchstart' in document.documentElement) document.write("<script src='/Areas/Admin/assets/js/jquery.mobile.custom.js'>" + "<" + "/script>");
    </script>
    <script src="/Areas/Admin/assets/js/bootstrap.js"></script>
    <script src="/Areas/Admin/assets/js/bootbox.js"></script>
    <script src="/Areas/Admin/assets/js/jquery.form.js"></script>
    <script src="/Areas/Admin/assets/js/jquery.validate.js"></script>
    <script src="/Areas/Admin/assets/js/jquery.validate.expand.js"></script>
    <script src="/Areas/Admin/assets/js/date-time/bootstrap-datepicker.js"></script>
    <script src="/Areas/Admin/assets/js/date-time/moment.js"></script>
    <script src="/Areas/Admin/assets/js/date-time/bootstrap-datetimepicker.js"></script>
    <!-- ace scripts -->

    <script src="/Areas/Admin/assets/js/ace/ace.js"></script>
    <script src="/Areas/Admin/assets/js/ace/ace.sidebar.js"></script>
    <script type="text/javascript">
        var imageServerUrl = '@ProxyImageServices.ImageUploadUrl';
    </script>
    <script src="/Areas/Admin/js/Public/MainModuleBase.js"></script>
    <script src="/Areas/Admin/assets/js/fileinput/fileinput.min.js"></script>
    <script src="/Areas/Admin/assets/js/fileinput/fileinput.zh.js"></script>
    <script src="/Areas/Admin/assets/js/ueditor/ueditor.config.js"></script>
    <script src="/Areas/Admin/assets/js/ueditor/ueditor.all.min.js"></script>
    <script src="/Areas/Admin/assets/js/ueditor/ueditor.parse.min.js"></script>
    <script src="/Areas/Admin/assets/js/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script src="/Areas/Admin/assets/js/uploadify/jquery.uploadify.js"></script>
    @*<script src="~/Scripts/jquery.signalR-2.2.1.min.js"></script>*@
    @*<script src="~/signalr/hubs"></script>*@
    <script type="text/javascript">
        jQuery(function($) {
            var msgall = 0;
            var submsg = 0;
            GetLoginUser(function (data) {
                InitLeftMenu(data.menu, '', '', '');
                $("#NickName").html(data.nickName);
            });
            //初始化菜单
            $("#CrumbsAreaName").hide();
            $("#CrumbsModuleName").hide();
            $("#CrumbsModuleActionName").hide();
            //消息提醒 core2.0暂时不支持
            //var chat = $.connection.WsHubs;
            //chat.client.addNewMessageToPage = function(data) {
            //    var model = JSON.parse(data);
            //    if (model.Type == 0) {
            //        if (model.Topic == 0) {
            //            submsg = model.Count;
            //        }
            //        msgall = submsg;
            //    }
            //    else if (model.Type == 1) {
            //        if (model.Topic == 0) {
            //            submsg += model.Count;
            //        }
            //        msgall += model.Count;
            //    }
            //    $(".allMsg").text(msgall);
            //    $(".subMsg").text(submsg);
            //}
            //$.connection.hub.start().done(function() {
            //    chat.server.init();
            //});
        });
        function loadfun(src) {
            $("#childFun").append("<script type=\"text/javascript\" src=\"" + src + "\"><\/script>");
        }
    </script>
    @RenderSection("Js", false)
</head>
<body class="no-skin">
    <!-- #section:basics/navbar.layout -->
    <div id="navbar" class="navbar navbar-default ace-save-state">
        <div class="navbar-container ace-save-state" id="navbar-container">
            <!-- #section:basics/sidebar.mobile.toggle -->
            <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
                <span class="sr-only">Toggle sidebar</span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>
            </button>

            <!-- /section:basics/sidebar.mobile.toggle -->
            <div class="navbar-header pull-left">
                <!-- #section:basics/navbar.layout.brand -->
                <a href="#" class="navbar-brand">
                    <small>
                        <i class="fa fa-leaf"></i>
                        纯净版 会员系统
                    </small>
                </a>

                <!-- /section:basics/navbar.layout.brand -->
                <!-- #section:basics/navbar.toggle -->
                <!-- /section:basics/navbar.toggle -->
            </div>

            <!-- #section:basics/navbar.dropdown -->
            <div class="navbar-buttons navbar-header pull-right" role="navigation">
                <ul class="nav ace-nav">
                    <li class="green">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#" aria-expanded="true">
                            <i class="ace-icon fa fa-bell"></i>
                            <span class="badge badge-success allMsg">0</span>
                        </a>

                        <ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
                            <li class="dropdown-header">
                                <i class="ace-icon fa fa-bell-o"></i>
                                <span class="allMsg">0</span> <span>条新消息</span>
                            </li>

                            <li class="dropdown-content ace-scroll" style="position: relative;">
                                <div class="scroll-track scroll-active" style="display: block; height: 200px;"><div class="scroll-bar" style="height: 111px; top: 89px;"></div></div><div class="scroll-content" style="max-height: 200px;">
                                    <ul class="dropdown-menu dropdown-navbar">
                                        <li>
                                            <a href="#">
                                                <div class="clearfix">
                                                    <span class="pull-left">
                                                        <i class="btn btn-xs no-hover btn-blue fa fa-user"></i>
                                                        消息提醒
                                                    </span>
                                                    <span class="pull-right badge badge-info"><span>+</span><span class="subMsg">0</span></span>
                                                </div>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- #section:basics/navbar.user_menu -->
                    <li class="light-blue">
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                            <img class="nav-user-photo" src="/Areas/Admin/assets/avatars/user.jpg" alt="Jason's Photo" />
                            <span class="user-info">
                                <small>欢迎,</small>
                                <span id="NickName"></span>
                            </span>

                            <i class="ace-icon fa fa-caret-down"></i>
                        </a>

                        <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">

                            <li>
                                <a href="javascript:;" onclick="showuser('info')" role="button">
                                    <i class="ace-icon fa fa-user"></i>
                                    个人信息
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="javascript:;" onclick="showuser('pwd')" role="button">
                                    <i class="ace-icon fa fa-lock"></i>
                                    修改密码
                                </a>
                            </li>
                            <li class="divider"></li>

                            <li>
                                <a href="/Admin/Home/LoginOut">
                                    <i class="ace-icon fa fa-power-off"></i>
                                    登出
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- /section:basics/navbar.user_menu -->
                </ul>
            </div>

            <!-- /section:basics/navbar.dropdown -->
        </div><!-- /.navbar-container -->
    </div>

    <!-- /section:basics/navbar.layout -->
    <div class="main-container ace-save-state" id="main-container">
        <script type="text/javascript">
            try {
                ace.settings.loadState('main-container');
            } catch (e) {
            }
        </script>

        <!-- #section:basics/sidebar -->
        <div id="sidebar" class="sidebar responsive ace-save-state">
            <script type="text/javascript">
                try {
                    ace.settings.loadState('sidebar');
                } catch (e) {
                }
            </script>


            <ul id="menu" class="nav nav-list">
                <!--<li class="active">
                    <a href="/Admin/Home">
                        <i class="menu-icon fa fa-tachometer"></i>
                        <span class="menu-text"> 首页 </span>
                    </a>

                    <b class="arrow"></b>
                </li>-->


            </ul>
            <!-- /.nav-list -->
            <!-- #section:basics/sidebar.layout.minimize -->
            <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
                <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
            </div>

            <!-- /section:basics/sidebar.layout.minimize -->
        </div>

        <!-- /section:basics/sidebar -->
        <div class="main-content">
            <div class="main-content-inner">
                <div class="breadcrumbs ace-save-state" id="breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <i class="ace-icon fa fa-home home-icon"></i>
                            <a href="/Admin/Home/Index">首页</a>
                        </li>
                        <li id="CrumbsAreaName">

                        </li>
                        <li id="CrumbsModuleName">

                        </li>
                        <li id="CrumbsModuleActionName" class="active">

                        </li>
                    </ul>
                </div>

                <div class="page-content">
                    @RenderBody()
                    <!--新增、编辑-->
                    <div id="my-modal-info" class="modal fade" style="width: 100%;" tabindex="-1">
                        <div class="modal-dialog" style="width: 90%;">
                            <div class="modal-content">

                            </div>
                        </div>
                    </div>
                    <!--管理员信息-->
                    <div id="my-modal-user" class="modal fade" tabindex="-1">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <form class="form-horizontal" id="formpwd" role="form">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                        <h3 class="smaller lighter blue no-margin"></h3>
                                    </div>

                                    <div class="modal-body">

                                    </div>

                                    <div class="modal-footer">
                                        <button class="btn btn-sm btn-success pull-right" id="savepwd">
                                            <i class="ace-icon fa fa-check"></i>
                                            保存
                                        </button>
                                    </div>
                                </form>
                            </div><!-- /.modal-content -->
                        </div><!-- /.modal-dialog -->
                    </div>
                </div>
            </div>
        </div><!-- /.main-content -->

        <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
            <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
        </a>
    </div>
    <!-- /.main-container -->
    <div id="childFun"></div>
</body>
</html>
